package top.wettis.chat.pojo.DO;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author wettis
 * @since 2023-03-25
 */
@Getter
@Setter
@TableName("users")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;


    @TableField("email")
    private String email;

    @TableField("level")
    private Integer level;

    @TableField("point")
    private Double point;

    @TableField("has_plan")
    private Integer hasPlan;

    @TableField("asktimes")
    private Integer asktimes;

    @TableField("punchtimes")
    private Integer punchtimes;

    @TableField("consecutive")
    private Integer consecutive;

    @TableField("create_time")
    private String createTime;

    @TableField("role")
    private String role;

    @TableField("phone")
    private String phone;

    @TableField("neck_name")
    private String neckName;

    @TableField("plan_time")
    private String planTime;
}
